package com.tangcco.lockwell.service.impl;

import com.tangcco.lockwell.domain.RegisterPhoneValidateCode;
import com.tangcco.lockwell.repository.RegisterPhoneValidateCodeMapper;
import com.tangcco.lockwell.service.RegisterPhoneValidateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 手机号验证码记录
 *
 * @author yanxinping
 * @date 2025-01-15 11:59
 */
@Service
public class RegisterPhoneValidateServiceImpl implements RegisterPhoneValidateService {

    @Autowired
    private RegisterPhoneValidateCodeMapper registerPhoneValidateCodeMapper;


    @Override
    public RegisterPhoneValidateCode selectByPhoneAndSendType(String phone,Integer sendType) {
        return registerPhoneValidateCodeMapper.selectByPhoneAndSendType(phone,sendType);
    }
    @Override
    public int insertSelective(RegisterPhoneValidateCode record) {
        return registerPhoneValidateCodeMapper.insertSelective(record);
    }

}

